<%@ page import="java.util.Map" %>
<%@ page import="java.util.List" %>
<%@ page import="com.tucue.model.MerchantsOrder" %>
<%@ page import="com.tucue.utils.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
  <title>订单详情</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" href="<%request.getContextPath();%>/css/bootstrap.min.css">
  <link rel="stylesheet" href="<%request.getContextPath();%>/css/Login.css">
  <script src="<%request.getContextPath();%>/js/jquery-1.11.2.min.js"></script>
  <script src="<%request.getContextPath();%>/js/bootstrap.min.js"></script>
</head>

<body>

<div>
  <c:forEach items="${merchantsOrderlist}" var="tag" varStatus="id">
    <h1 class="Order_head" style="font-size:26px;">${tag.merchantsorderid}# 订单处理</h1>
  </c:forEach>
  <hr class="Order_line"/>
  <div class="div_adding"><p class="Order_title">进度</p></div>
  <div id="Order_ex">
    <table class="table table-bordered table-striped table-hover" id="Order_ta">
      <tr>
        <th>流程</th>
        <th>状态</th>
        <th>审核员</th>
        <th>备注</th>
        <th>审核时间</th>
      </tr>
      <tr>

        <c:forEach items="${orderStatusList}" var="tag" varStatus="id">
          <c:if test="${tag.status==11 or tag.status==12}">
            <td>初审</td>
          <c:if test="${tag.status==11}">
            <td>已受理</td>
          </c:if>
            <c:if test="${tag.status==12}">
              <td>拒绝</td>
            </c:if>
            <td>${tag.userid}</td>
            <td>${tag.description}</td>
            <td>${tag.checktime}</td>
          </c:if>
        </c:forEach>
      </tr>

      <tr>

        <c:forEach items="${orderStatusList}" var="tag" varStatus="id">
          <c:if test="${tag.status==21 or tag.status==22}">
            <td>终审</td>
            <c:if test="${tag.status==21}">
              <td>已确认成交</td>
            </c:if>
            <c:if test="${tag.status==22}">
              <td>未成交</td>
            </c:if>
            <td>${tag.userid}</td>
            <td>${tag.description}</td>
            <td>${tag.checktime}</td>
          </c:if>
        </c:forEach>
      </tr>
    </table>
  </div>
  <div class="div_adding"><p class="Order_title">订单信息</p></div>
  <div id="Order_ex">

    <table class="table table-bordered  table-striped table-hover" id="Order_ta">
      <c:forEach items="${merchantsOrderlist}" var="tag" varStatus="id">
        <tr>
          <th>用户</th>
          <td>${tag.userid}</td>
        </tr>
        <tr>
          <th>联系姓名</th>
          <td>${tag.userid}</td>
        </tr>
        <tr>
          <th>联系方式</th>
          <td>${tag.mobile}</td>
        </tr>
        <tr>
          <td>职位</td>
          <td></td>
        </tr>
        <tr>
          <td>企业名称</td>
          <td></td>
        </tr>
        <tr>
          <td>期望入住日期</td>
          <td></td>
        </tr>
        <tr>
          <th>下单时间</th>
          <td>${tag.createtime}</td>
        </tr>
        <tr>
          <th>备注</th>
          <td>${tag.description}</td>
        </tr>
      </c:forEach>
    </table>

    <table class="table table-bordered  table-striped table-hover" id="Order_ta">
      <tr>
        <th>订购产品编号</th>
        <td>${mechantsPolicyInfo.merchantspolicyid}</td>
      </tr>
      <tr>
        <th>产品名称</th>
        <td>
          <a href="productDetails.html">${mechantsPolicyInfo.name}</a>
        </td>
      </tr>
      <tr>
        <th>产品类别</th>
        <td>园区服务</td>
      </tr>
    </table>
  </div>

  <div class="div_adding"><p class="Order_title">操作——初审/终审</p></div>
  <div id="Order_ex">
    <div class="Order_label">
      <label>本轮审核结论：</label>
      <label class="Order_la">
        <input type="radio" name="Judge" value="通过">
        通过</label>
      <label class="Order_la">
        <input type="radio" name="Judge" value="未通过">
        未通过</label>
    </div>

    <div class="Order_label">
      <p><b>拒绝原因：</b>（注：将发送给申请者）</p>
      <c:forEach items="${orderStatusList}" var="tag" varStatus="id">
      <textarea class="Order_tera">${tag.reason}</textarea>
      </c:forEach>
    </div>
    <div class="Order_label">
      <p><b>操作备注：</b>（注：仅内部可见）</p>
      <textarea class="Order_tera"></textarea>
    </div>
    <div class="buttongroup">
      <button type="button" class="btn btn-primary" style="margin-left: 280px;width: 96px;">发送</button>
      <button type="button" class="btn btn-primary" style="margin-left: 100px;width: 96px;">取消</button>
    </div>
  </div>


</div>
</body>
</html>
